<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>列出工作岗位</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/four.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../css/jqe/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../css/jqe/themes/icon.css"/>

    <script type="text/javascript" src="../js/jquery-3.1.1.min.js"></script>
	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>

    <script type="text/javascript">
 
        $(function(){
         	//初始化对话框
        	 $('#dw,#dwEdit').window({
       		   onBeforeClose:function(){ 
       			   //取消时关闭等待框
       			   setTimeout(function(){ 
       				   sending.style.visibility = "hidden";
					   }, 250);
       	    }});
       	
            $(".btnAll").each(function(i,v){
         	   //变手型
         	     $(v).mouseover(function() {
     				$(this).css("cursor", "hand");
     			 }).mouseout(function() {
     				$(this).css("cursor", "pointer");
     			 });
         	   
          	   if($(v).html()=='【增加】'){
          		   $(v).click(function(){
          			   $('#dw').window("open");
          		   });
          	   }else if($(v).html()=='【编辑】'){
        		   $(v).click(function(){
        			   location.href="toUpJy.do?jysuccid="+$(v).prop("lang");  
        		   });
        	   }else if($(v).html()=='【删除】'){
        		   $(v).click(function(){
        			 //  alert($("select[name='slkt_dps']").val());
         			  if(confirm("确认删除员工'"+$(v).prop("title")+"'?")){
         				   location.href="delJy.do?jysuccid="+$(v).prop("lang"); 
         			  }  
         		   });
         	   }
           	   
          	 
            });
        });
    </script>
</head>
<body>
	<!-- 包含等待框 -->
	<jsp:include page="../waittable.jsp" flush="true" />
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr valign="top">
			<td bgcolor="#FFFFFF"><table width="96%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#aec3de">
					
				  	<tr align="center">
					    <td width="1%" align="center" bgcolor="#ebf0f7">就业登记ID</td>
						<td width="10%" align="center" bgcolor="#ebf0f7">学生姓名</td>
						<td width="10%" align="center" bgcolor="#ebf0f7">联系电话</td>
						<td width="20%" align="center" bgcolor="#ebf0f7">企业名称</td>
						<td width="20%" align="center" bgcolor="#ebf0f7">操作 <span class="btnAll">【增加】</span> </td>
					</tr>
					<c:forEach items="${page.results}" var="jy">
						<tr align="center" bgcolor="#FFFFFF">
						    <td align="center" bgcolor="#ebf0f7">${jy.jysuccid}</td>
							<td align="center">${jy.stuname}</td>
							<td align="center">${jy.stuphone}</td>
							<td align="center">${jy.ltdname}</td>
							<td align="left">
							【<a href="oneJy.do?jysuccid=${jy.jysuccid}">查看</a>】<c:if test="${lgnUsr.eid > 0}">
									| <span class="btnAll" lang="${jy.jysuccid}">【编辑】</span>
								    | <span class="btnAll" lang="${jy.jysuccid}" title="${jy.stuname}">【删除】</span>
				                   </c:if>
							</td>
						</tr>
					</c:forEach>
					<tr align="right" bgcolor="#ebf0f7">
							<td colspan="7">
							<jk:page totalPage="${page.totalPage}" pageNo="${page.pageNo}" totalRecord="${page.totalRecord}"
                                url="tobatchStudent.do"/>
							</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
		  <td align="center"><span id="msg" style="color: red">${msg}</span></td>
		</tr>
	</table>
  
	<div id="dw" class="easyui-window" title="新员工入职" data-options="modal:true,minimizable:false,closed:true,maximizable:false,iconCls:'icon-save'" style="width:280px;height:150px;padding:10px;display: none;">
		<form action="addJy.do" method="post">
		   <table border="0" width="100%" >
		     <tr><td>学生姓名:</td><td>
		   	       <select name="ossstuid">
						    <c:forEach items="${ostu}" var="o">
						       <option value="${o.ossstuid}">${o.stuname}</option>
						    </c:forEach>
						 </select>
		       </td></tr>
		        <tr><td>登记人:</td><td>
		   	       <select name="eid">
						    <c:forEach items="${emps}" var="e">
						       <option value="${e.eid}">${e.ename}</option>
						    </c:forEach>
						 </select>
		       </td></tr>
		       
		        <tr><td>企业名称:</td><td>
		   	    	<input name="ltdname"></input>
		       </td></tr>
		     <tr><td></td><td><input type="submit" value="保存"/></td></tr>
		   </table>
		</form>
	</div>
	
	
</body>
</html>